import React, { useContext } from 'react';
import { CountContext } from './index'

function UseContextApp(){
    // const CountContext = createContext()
    const count = useContext(CountContext)
    return (<div> 
        useContext 
        <p>you clicked {count} times</p> 
    </div>)
}
export default UseContextApp